package com.zeng.stpro.commons.exception;

/**
 * @Author ZENGZHIJUN
 * @Date 2021/2/7 11:58
 */

public class IpNotAllowedException extends StrawberryException {

    private String msg;
    private int code = 403;//

    public IpNotAllowedException() {

    }

    public IpNotAllowedException(String message) {
        super(message);
        this.msg = message;
    }

    public IpNotAllowedException(int code, String message) {
        super(message,code);
        this.msg = message;
    }

    public IpNotAllowedException(String msg, int code, Throwable e) {
        super(msg,e);
        this.msg = msg;
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code = code;
    }
}
